﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

namespace Factur_IT
{
    public partial class SiteMaster : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //ChartDirector.Chart.setLicenseCode("RDST-25WU-APHB-54NP-4E77-F6D5"); 
        }
        protected void btnSignOut_Click(object sender, EventArgs e)
        {
            Session.Abandon(); 
            Response.Redirect("~/Account/login.aspx");
        }

       

        protected string GenerateURL(string path) {
            if(path.StartsWith("~/"))
                path = path.Substring(1);

            return Request.Url.GetLeftPart(UriPartial.Authority) + path;
        }

        
    }
}
